#pragma once

#include <Eigen/Dense>

using namespace Eigen;


MatrixXd Arr2Matrix(double* pBuff, int MatrixSize, int MatrixDim);
void FeatureNormalize(MatrixXd& X);
void computeCov(MatrixXd& X, MatrixXd& C);
void computeEig(MatrixXd& C, MatrixXd& vec, MatrixXd& val);
int computeDim(MatrixXd& val);
